import { createApp } from 'vue'
// import { createPinia } from 'pinia'

// 下载完pinia永久存储后重新把store(pinia)挂载到全局
import store from './stores/index'
import App from './App.vue'
import router from './router'

import './assets/main.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//icons图标全局挂载
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(store)
app.use(ElementPlus)
// app.use(createPinia())
app.use(router)

app.mount('#app')
